projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e761b55
)
Minor leak fixes.
author
robertl
<robertl>
Sat, 3 Sep 2005 03:08:37 +0000
(
03:08
+0000)
committer
robertl
<robertl>
Sat, 3 Sep 2005 03:08:37 +0000
(
03:08
+0000)
maggeo.c
patch
|
blob
|
history
mkshort.c
patch
|
blob
|
history
diff --git
a/maggeo.c
b/maggeo.c
index d6ec210e7ceaeb797673caea5134adda876736da..4cb016fed46b1af48340c22647d215a2f17c1aa4 100644
(file)
--- a/
maggeo.c
+++ b/
maggeo.c
@@
-201,7
+201,7
@@
maggeo_waypt_pr(const waypoint *waypointp)
if (cname) xfree(cname);
maggeo_writemsg(obuf);
-
+ xfree(cname);
}
static void
diff --git
a/mkshort.c
b/mkshort.c
index db5e0a45d4ee84ca32370020ad8d9d131369fb17..1a17c9928a899633d17649662c072ba36d775b06 100644
(file)
--- a/
mkshort.c
+++ b/
mkshort.c
@@
-168,6
+168,7
@@
mkshort_del_handle(void *h)
xfree(s);
}
}
+ setshort_badchars(h, NULL);
xfree(hdr);
}
@@
-234,6
+235,9
@@
void
setshort_badchars(void *h, const char *s)
{
mkshort_handle *hdl = h;
+
+ if ((hdl->badchars != NULL) && (hdl->badchars != DEFAULT_BADCHARS))
+ xfree(hdl->badchars);
if (s == NULL) {
hdl->badchars = DEFAULT_BADCHARS;
} else {